Fireworks Article

Creating Styles in Fireworks

Richard Blenkinsopp
www.richiebee.ca

In my Introduction to Styles article, you learned how to apply styles to objects in Macromedia Fireworks. Now, you're going to move onto the next level: creating your own styles. First, you'll look at the theory. Then, I will give you insight into the more creative art of putting together a unique set of stroke, fill, effect, and text parameters that together create something special. If you're not familiar with styles in Fireworks, I suggest you start with my Introduction to Styles article.

Requirements

Macromedia Fireworks


Download the Sample Files


Complete part one of this article series:

Introduction to Styles

First the Theory

Saving a style is always the last stage of creating one. Use the following generic steps to create a style.

  1. Apply stroke, fill, effect, and text attributes to your object.

  2. Click the New Style icon in the bottom right corner of the Styles panel.

  3. Give your Style a name and choose the attributes that are relevant to its character, as shown in Figure 1 below.

  4. Click OK.

    The Styles panel with Options, New Style and Delete Selected Style features highlighted

    Figure 1. The Styles panel with Options, New Style, and Delete Selected Style features highlighted.

You can change the attributes that are part of the Style by editing it. To edit a Style, click the options icon on the Styles panel and choose Edit, or simply double-click the Style you wish to edit.

This is handy for cases where you do not wish to overwrite all the attributes of an object. Fireworks stores all the information applicable to styles in the object used to create it. For example, if you save a Style with only Stroke parameters but later decide that you liked the Fill attributes of that Style too, you can edit the Style and add attributes that were in the original object. Unfortunately, you can’t actually edit the parameters of these attributes themselves. So if you're trying to modify an existing style, you simply have to save your modified work as a new Style. Fireworks doesn't mind if you give two styles the same name though, so editing a Style to this extent is as simple as saving as a new Style and deleting the original.

If you start out with the intention of designing a Style (as opposed to creating them by accident which is how most of mine start out), there are things you can bear in mind to make your job easier. First, be aware that Fireworks saves effects such as shadow, glow, bevel, and emboss effects as well as stroke size with absolute values. This means that any Style that you apply to a small object will look different than when you apply it to a large object. For this reason, it’s a good idea to start with an object that is the approximate size you intend to use your Style on. With that said, styles are flexible and small size differences are virtually unnoticeable.

Creating a Style Pack

For permanent archiving and organization, you can save single styles and groups of styles on your computer as an STL file. Use the following steps to create and save an STL file.

  1. Select a style. You can shift-click or control-click to select several styles.
  2. Click the options icon on the Styles panel and choose Export Styles. Fireworks will only export those styles that you have selected.
  3. In the Save As dialog box, choose a location to save the style. You don't have to save your STL files anywhere specific on your computer to use them, though, it makes sense to put them somewhere safe where you'll remember instead of deleting them by accident. I recommend keeping them in the Fireworks directory to avoid accidentally deleting them.
  4. Give the STL file a descriptive name and click Save.

Now the Creative…

In a short article such as this one, I can only scratch the surface of being creative with the limitless possibilities with Fireworks styles. So, I'm going to concentrate on creating some desirable shiny effects that you'll want to keep coming back to.

Shiny effects rely heavily on a small handful of Fireworks built-in Live Effects; and it is the basics of these effects that I describe first.

The Property inspector illustrating applied Live Effects

Figure 2. The Property inspector illustrating applied Live Effects

Adjust Color—Curves

Use this effect to add new color changes and give the illusion of light shining from different sources, in a controlled way. It is useful on objects with gradient fills, inner shadows, and inner glows (see below) where you can transform smooth grades into bands that follow the contours of your object in a way that mimics highly shiny materials.

Adjust Color—Brightness/Contrast

This effect is a simple way to balance contrast and brightness in shiny objects or to intensify an effect.

Adjust Color—Hue Saturation

This effect is useful for pearly effects (where light creates the illusion of different colors on a single colored object) and adding color to shiny objects created in grayscale.

Shadow and Glow—Inner Shadow/Inner Glow

Use inner shadows and inner glows to either add depth to an object, provide direction to light sources, or to mask other inner shadows, inner glows, or gradient fills and strokes. They provide the basis for highlights and shadows on an objects and can displace other elements that are in fixed positions.

Note: When you use masking techniques, the order of the live effects becomes very important.

Note: When working with lots of Live Effects, I find it easier to view and change their order by reducing the Properties Panel to half height (click the options icon on the Properties Panel to reveal this option).

A Shining Example

In the following example, you can see two objects with an exaggerated shine to them. In the top object, the shine appears to dip at the edges. In the bottom object, the shine appears to rise at the edges. Both are valid ways of representing contours on a shiny object, but they give the underlying objects different characteristics. These subtle differences give you an idea of how flexible effects are for creating the exact style you want.

Two objects with an exaggerated shine

Figure 3. Two objects with an exaggerated shine

How did I do this? I created the top object using a dark gray object, with a white inner shadow at 270 degrees, slightly masked at the edges by a dark inner glow. I created the object on the bottom using a white object with a dark gray inner shadow at 90 degrees and the same dark gray inner glow.

In both of these examples, the inner shadow takes up roughly half the height of the object itself to create an illusion that the object's curve peaks in the center. Since both the object height and the inner shadow width are measured in pixels, this is easy to calculate. Experimenting with the softness of the inner shadow can make the object look more or less shiny. A higher value of softness creates more of a muted shine while a low value gives a more glassy appearance, especially when you combine it with a linear gradient fill that goes from a dark shade to light, top to bottom.

Two examples of objects with different shine characteristics using different Inner Shadow and with Inner Glow Live Effect settings

Figure 4. Two examples of objects with different shine characteristics using different Inner Shadow and with Inner Glow Live Effect settings

In all the examples above, I have used an inner glow as the last effect to create a narrow band of darkness around the object. This gives a boundary to the object and adds an illusion of depth. As I mentioned earlier, the order in which the effects are applied to an object impacts the resulting appearance. Note that when appearing after the inner shadows, the inner glow masks part of the inner shadow. If I used the inner glow before the inner shadow, I would lose some of the top of the object against the white background. In Figure 5 below, you can see the two live effects I have talked about—inner glow and inner shadow—applied in different orders. The top object in Figure 5 first had inner shadow applied and then inner glow. The bottom object had inner glow and then inner shadow applied.

Two examples of objects with the Inner Shadow and Inner Glow Effects applied in different orders and with different softness setting

Figure 5. Two examples of objects with the Inner Shadow and Inner Glow Effects applied in different orders and with different softness settings

Accentuating the Detail

You can exaggerate the detail of shine with two effects: Adjust Color > Brightness/Contrast and Adjust Color > Curves. The Brightness/Contrast effect is handy for small, simple changes in the overall effect. It’s easy to control; the brightness control affects the overall object brightness, and the contrast accentuates or mutes the effect of shine. With just two sliders to control, it’s easy to get the effect you're looking for.

The Adjust Color > Curves effect is more useful for creating multiple reflections on the surface of your object by altering how lights and darks are represented. This is useful for creating realistic chrome or other shiny metal effects as well as glassy effects. When using curves in this way on grayscale objects, you adjust the RGB curve and not any one color channel individually. Since this is what comes up by default when you open the Curves Live Effect, there is no need to make any special selections here. Figure six below shows how to use the curves effect to control the contour of shine on an object. The first example is the original, with no curve applied. Subsequent examples show what happens if you add points to the original curve and remap the position with shades of gray.

Accentuating the detail of objects with the Adjust Color > Curves Effect and apply different curve characteristics.

Figure 6. Accentuating the detail of objects with the Adjust Color > Curves Effect and apply different curve characteristics.

Giving Direction

Sometimes it's desirable to make the light source appear from somewhere other than the top or bottom of an object. By using inner shadows to mask other inner shadows, gradients, and inner glows, you can displace the shine from the top or bottom of an object.

Adding the Inner Shadow Effect at different angles and altering the Inner Glow Effect setting.

Figure 7. Adding the Inner Shadow Effect at different angles and altering the Inner Glow Effect setting.

The example above shows how by adding inner shadows at different angles and altering the inner glow, you can add a sense of direction to the shine. The best way to analyze this technique is to download the sample file linked from the beginning of this article and take it apart. The top two examples are as shown earlier in this article, the next set add inner shadows at 0 and 180 degrees at the same shade as the dark color of the object. The fifth example changes the 0 degree inner shadow to white and rotates it to displace the shine effect. The sixth example is the same as the fifth, except that the inner glow has been expanded to mask more of the shadow effect.

Add a Splash of Color

Adding and modifying colors using the Adjust Color > Hue/Saturation Effect

Figure 8. Adding and modifying colors using the Adjust Color > Hue/Saturation Effect

So far, I have addressed creating shining objects made of gray or silver stuff…Now it’s time to add a splash of color. There is a good reason for working in grayscale when creating objects with depth like those you have created so far. With grayscale, you only need to concern yourself with the lightness of inner glows and inner shadows, without needing to worry about matching color hues to the object color. If you're thinking "big deal," then just think about the steps you need to take to change the color of your object and all its highlights and shadows; adding the color at the end means you only have a single parameter to change. Again, the order in which you apply effects to objects makes a difference.

To change the color at the end of the effects chain, use Adjust Color > Hue/Saturation. When the Hue/Saturation dialog box appears, ensure that the colorize option is checked. Otherwise, your gray object will stay gray and only the lightness slider will have any effect.

Hue The Hue slider is predictable when you use it on grayscale objects. It moves through the color spectrum as follows:

Red (0) Orange (30) Yellow (54) Green (75) Blue (180) Purple (280) Pink (315) Red (350)

Note: The numbers in parenthesis are rough indications of where to find the start of a color on the Hue slider. Since the colors change gradually, this should not be considered an accurate or calculated method of finding a particular hue.

Saturation The Saturation slider affects the amount of color that is applied to the object. Muted colors are useful for metallic effects, such as gold and bronze, while vibrant colors are more representative of modern plastic materials. Use the saturation slider to alter the amount of color added to the object.

Lightness Finally, use the Lightness slider to control the overall lightness of the color applied to the object, helping you to balance the overall object color.

Note: Apply curves after the Hue/Saturation, with a slight dip and bump to the standard curve (see Figure 9 below) to produce cool pearly effects where a single colored object appears to have more than one color depending on how the light hits it. This is similar to the effect seen on auto paint finishes.

Applying curves after applying the Hue/Saturation Effect

Figure 9. Applying curves after applying the Hue/Saturation Effect

You'll notice that I have not mentioned any dimensions or values for effects. That's because they are somewhat dependent on the objects you apply them to. With this article, I have included a selection of Fireworks PNG files and styles with effects I discussed in this tutorial, and I fully endorse experimenting. Knowing that the appearance of these PNGs is attributed to great Live Effects gives you all you need to explore the techniques used to create them and to change them. You can’t break anything. Go ahead, get your hands dirty, and create some great new Fireworks styles and some undiscovered techniques.


About the author

Richard Blenkinsopp has been a Fireworks enthusiast since 1998 when version 2 was released. He works at the Memorial University of Newfoundland where his job includes designing and maintaining the School of Music website. Artistically challenged as a child, Richard has found Fireworks to be the perfect solution for creating complex graphics and concepts without the need to be able to draw.

Richard lives in Newfoundland, Canada with his wife Kelly. He enjoys taking scenic photographs and playing the trumpet in local funk and jazz groups.